ForEach<T> Method

Summary
Extension method provides a foreach like wrapper for IEnumerable.
Syntax
C#
C++/CLI
public static void ForEach<T>( 
   this IEnumerable<T> source, 
   Action<T> action 
) 
[ExtensionAttribute()] 
public: 
static void ForEachgeneric<typename T> 
(  
   IEnumerable<T^>^ source, 
   Action<T^>^ action 
)  

Parameters

source
The source enumeration

action
The action to perform.

Type Parameters

T
The IEnumerable object to iterate over.

Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Dicom.AddIn Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.